<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<jsp:useBean id="randomId" class="com.lmpop.frame.util.RandomID" scope="page" />
<%@page import="com.lmpop.trade.ti_company.*" %>
<%@page import="com.lmpop.trade.ts_area.*" %>
<%@page import="com.lmpop.trade.ts_category.*" %>
<%@page import="com.lmpop.trade.tb_commpara.*" %>
<%@page import="com.lmpop.trade.ts_custclass.*" %>
<%@page import="java.util.*" %>
<%@page import="com.lmpop.trade.ti_custlevel.*" %>
 

<html>
  <head>
    
    <title>企业会员管理</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
	
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/Ts_areaInfo.js'></script>
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/Ts_categoryInfo.js'></script>
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/Tb_commparaInfo.js'></script>
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/engine.js'></script>
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/util.js'></script>
	
	<script type='text/javascript' src='js_customer.js'></script>
	<script type="text/javascript" src="/program/plugins/calendar/WdatePicker.js"></script>
</head>

<body>

  <% 
  
	Ts_categoryInfo classBean = new Ts_categoryInfo();
	Ts_areaInfo areaBean = new Ts_areaInfo();
	Tb_commparaInfo paraBean = new Tb_commparaInfo();
  	String cust_id="";
  	if(request.getParameter("cust_id")!=null) cust_id = request.getParameter("cust_id");
  	String jumpurl="";
  	if(request.getParameter("jumpurl")!=null) jumpurl = request.getParameter("jumpurl");

	Ti_custlevelInfo custLevelInfo = new Ti_custlevelInfo();
	List custLevel_list = custLevelInfo.getListByPk(cust_id);
	Hashtable custLevel_map = new Hashtable();	
	if(custLevel_list!=null && custLevel_list.size()>0) custLevel_map = (Hashtable)custLevel_list.get(0);
	
	String cust_start_date = "";
	if(custLevel_map.get("cust_start_date")!=null){
	cust_start_date = custLevel_map.get("cust_start_date").toString();
	if(cust_start_date.length()>10)cust_start_date=cust_start_date.substring(0,10);
	}
	String cust_end_date = "";
	if(custLevel_map.get("cust_end_date")!=null){
	cust_end_date = custLevel_map.get("cust_end_date").toString();
	if(cust_end_date.length()>10)cust_end_date=cust_end_date.substring(0,10);
	}	
	
	String user_class = "";
	if(custLevel_map.get("cust_class")!=null){
	user_class = custLevel_map.get("cust_class").toString();
	}		
	
  	Ti_companyInfo ti_companyInfo = new Ti_companyInfo();
  	List list = ti_companyInfo.getListByPk(cust_id);
  	Hashtable map = new Hashtable();
  	if(list!=null && list.size()>0) map = (Hashtable)list.get(0);
  	
  	String short_name="",company_rage="",company_supply="",company_stock="",company_type="",client_status="",company_key="",main_product="",company_desc="",class_attr="",area_attr="",phone="",fax="",company_addr="",business_addr="",post_code="",email="",website="",contact_name="",contact_depart="",contact_job="",contact_sex="",contact_cellphone="",contact_msn="",contact_qq="",reg_money_type="",reg_money="",reg_date="",reg_addr="",corporate="",reg_no="",tax_no="",company_code="",bank_code="",bank_no="",make_sum="",staff_num="",kwo_num="",brand_name="",month_sum="",month_unit="",year_in="",year_out="",year_sum="",man_auth="",control_type="",main_market="",main_cust="",isoem="",in_date="",pub_user_id="",remark="";
	String cust_name="",state_code="",user_type="",by1="",by1string="";
	
	if(map.get("cust_name")!=null) cust_name = map.get("cust_name").toString();
	if(map.get("user_type")!=null) user_type = map.get("user_type").toString();
	if(map.get("state_code")!=null) state_code = map.get("state_code").toString();	
  	if(map.get("short_name")!=null) short_name = map.get("short_name").toString();
  	if(map.get("company_rage")!=null) company_rage = map.get("company_rage").toString();
  	if(map.get("company_supply")!=null) company_supply = map.get("company_supply").toString();
  	if(map.get("company_stock")!=null) company_stock = map.get("company_stock").toString();
  	if(map.get("company_type")!=null) company_type = map.get("company_type").toString();
  	if(map.get("client_status")!=null) client_status = map.get("client_status").toString();
  	if(map.get("company_key")!=null) company_key = map.get("company_key").toString();
  	if(map.get("main_product")!=null) main_product = map.get("main_product").toString();
  	if(map.get("company_desc")!=null) company_desc = map.get("company_desc").toString();
  	if(map.get("class_attr")!=null) class_attr = map.get("class_attr").toString();
  	if(map.get("area_attr")!=null) area_attr = map.get("area_attr").toString();
  	if(map.get("phone")!=null) phone = map.get("phone").toString();
  	if(map.get("fax")!=null) fax = map.get("fax").toString();
  	if(map.get("company_addr")!=null) company_addr = map.get("company_addr").toString();
  	if(map.get("business_addr")!=null) business_addr = map.get("business_addr").toString();
  	if(map.get("post_code")!=null) post_code = map.get("post_code").toString();
  	if(map.get("email")!=null) email = map.get("email").toString();
  	if(map.get("website")!=null) website = map.get("website").toString();
  	if(map.get("contact_name")!=null) contact_name = map.get("contact_name").toString();
  	if(map.get("contact_depart")!=null) contact_depart = map.get("contact_depart").toString();
  	if(map.get("contact_job")!=null) contact_job = map.get("contact_job").toString();
  	if(map.get("contact_sex")!=null) contact_sex = map.get("contact_sex").toString();
  	if(map.get("contact_cellphone")!=null) contact_cellphone = map.get("contact_cellphone").toString();
  	if(map.get("contact_msn")!=null) contact_msn = map.get("contact_msn").toString();
  	if(map.get("contact_qq")!=null) contact_qq = map.get("contact_qq").toString();
  	if(map.get("reg_money_type")!=null) reg_money_type = map.get("reg_money_type").toString();
  	if(map.get("reg_money")!=null) reg_money = map.get("reg_money").toString();
  	if(map.get("reg_date")!=null) reg_date = map.get("reg_date").toString();
  	if(map.get("reg_addr")!=null) reg_addr = map.get("reg_addr").toString();
  	if(map.get("corporate")!=null) corporate = map.get("corporate").toString();
  	if(map.get("reg_no")!=null) reg_no = map.get("reg_no").toString();
  	if(map.get("tax_no")!=null) tax_no = map.get("tax_no").toString();
  	if(map.get("company_code")!=null) company_code = map.get("company_code").toString();
  	if(map.get("bank_code")!=null) bank_code = map.get("bank_code").toString();
  	if(map.get("bank_no")!=null) bank_no = map.get("bank_no").toString();
  	if(map.get("make_sum")!=null) make_sum = map.get("make_sum").toString();
  	if(map.get("staff_num")!=null) staff_num = map.get("staff_num").toString();
  	if(map.get("kwo_num")!=null) kwo_num = map.get("kwo_num").toString();
  	if(map.get("brand_name")!=null) brand_name = map.get("brand_name").toString();
  	if(map.get("month_sum")!=null) month_sum = map.get("month_sum").toString();
  	if(map.get("month_unit")!=null) month_unit = map.get("month_unit").toString();
  	if(map.get("year_in")!=null) year_in = map.get("year_in").toString();
  	if(map.get("year_out")!=null) year_out = map.get("year_out").toString();
  	if(map.get("year_sum")!=null) year_sum = map.get("year_sum").toString();
  	if(map.get("man_auth")!=null) man_auth = map.get("man_auth").toString();
  	if(map.get("control_type")!=null) control_type = map.get("control_type").toString();
  	if(map.get("main_market")!=null) main_market = map.get("main_market").toString();
  	if(map.get("main_cust")!=null) main_cust = map.get("main_cust").toString();
  	if(map.get("isoem")!=null) isoem = map.get("isoem").toString();
  	if(map.get("in_date")!=null) in_date = map.get("in_date").toString();
  	if(map.get("pub_user_id")!=null) pub_user_id = map.get("pub_user_id").toString();
  	if(map.get("remark")!=null) remark = map.get("remark").toString();
		if(map.get("by1")!=null)
		{
			by1 = map.get("by1").toString();
		}
	else
		{
			by1 = randomId.GenTradeId();
		}
		if (user_class.equals("9"))
		{
			by1string  = "密码[ "+by1+" ]";
		}
	  String custTypeSelect = new Tb_commparaInfo().getSelectItem("12",company_type);

	
		String areaAttr = "",classAttr = "";
			
		if (map.get("area_attr") != null) {
		area_attr = map.get("area_attr").toString();
		String areaArr[] = area_attr.split("\\|");
		for( int k = 0; k < areaArr.length; k++ ){
			areaAttr = areaAttr + " &nbsp; " + areaBean.getAreaNameById( areaArr[k]);
		}
	}
	if (map.get("class_attr") != null) {
		class_attr = map.get("class_attr").toString();
		String classArr[] = class_attr.split("\\|");
		for( int i = 0; i < classArr.length; i++ ){
			classAttr = classAttr + " &nbsp; " + classBean.getCatNameById( classArr[i]);
		}
	}

			//取企业经营模式
		String flag0 = "" ,flag1 = "" ,flag2 = "",flag3 ="" ,flag4 = "";
		StringTokenizer client1 = new StringTokenizer(client_status,"|");
			String client2 = "";
			while (client1.hasMoreTokens()){
				client2 = client1.nextToken();
				if(client_status.indexOf("4") == -1){
					if(client2.equals("0")){flag0 = "0";}
					if(client2.equals("1")){flag1 = "0";}
					if(client2.equals("2")){flag2 = "0";}
					if(client2.equals("3")){flag3 = "0";}
				}
			if(client2.equals("4")){flag4 = "0";}
		}
	Map custclassinfoMap = new Hashtable();
	custclassinfoMap.put("class_type","0");	
	Ts_custclassInfo custclassinfo = new Ts_custclassInfo();
	String custclass_select =  custclassinfo.getSelectString(custclassinfoMap,user_class);		
		
	
  %>
	
	<h1>修改企业资料</h1>
	<form action="/doTradeReg.do" method="post" name="addForm">
	<table width="100%" class="listtab" cellpadding="1" cellspacing="1" border="0">
	
			<tr>
				<td colspan="4">
			   &nbsp;&nbsp;<img src="/program/admin/images/infotip.gif" border="0">&nbsp;&nbsp;<span style="font-size:14px;font-weight:bold;">企业基本信息</span>			</td>
		    </tr>	
		<tr>
			<td align="right" width="15%"  >
				企业名称<font color="red">*</font>
			</td>
			<td ><input name="cust_name" id="cust_name" value="<%=cust_name%>" type="text"  maxlength="40" size="30"/></td>

			<td align="right" width="10%">
				企业级别<font color="red">*</font>
			</td>
			<td>
			<select value="" name="user_class" style="width:145px" id="user_class" disabled="disabled">
					<%=custclass_select%>
			</select>
			<%=by1string%>
			<input type="hidden" name="user_class" id="user_class" value="<%=user_class%>">
			<input type="hidden" name="cust_class" id="cust_class" value="">
			<input type="hidden" name="by1" id="by1" value="<%=by1%>">
		</tr>
			<tr>
				<td align="right" width="10%">
					服务开始时间:
				</td>
				<td  >
				
				<input  disabled="disabled" name="cust_start_date" type="text" id="cust_start_date" value="<%=cust_start_date%>" class="Wdate" onclick="WdatePicker({maxDate:'#F{$dp.$D(\'cust_end_date\',{d:-1})}',readOnly:true})" size="15" />
				
				</td>

				<td align="right" width="10%">
					服务结束时间:
				</td>
				
				<td >
					<input  disabled="disabled" name="cust_end_date" id="cust_end_date" value="<%=cust_end_date%>"  type="text" class="Wdate" onclick="WdatePicker({minDate:'#F{$dp.$D(\'cust_start_date\',{d:1})}',readOnly:true})" size="15"/>
				</td>
			</tr>
			
		<tr>
			<td align="right" width="10%">
				企业网站二级域名:<font color="red">*</font>
			</td>
			<td  colspan="3"><input name="short_name" id="short_name" value="<%=short_name%>"  type="text"  maxlength="40" size="30" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				企业LOGO:
			</td>
			<td  colspan="3">
				<jsp:include page="/program/inc/uploadImgInc.jsp">
					<jsp:param name="attach_root_id" value="<%=cust_id%>" />
				</jsp:include>
			</td>
		</tr>
						

		<tr>
			<td align="right" width="10%">
				企业类别<font color="red">*</font>
			</td>
			<td  colspan="3">
				<input type="radio" name="company_rage" id="cust_rage1" value="1" <%if(company_rage.equals("1")){%>checked<%}%> onclick="showSpan(this.value)" /><font class="text12">销售</font>
				<input type="radio" name="company_rage" id="cust_rage2" value="0" <%if(company_rage.equals("0")){%>checked<%}%> onclick="showSpan(this.value)" /><font class="text12">采购</font>
				<input type="radio" name="company_rage" id="cust_rage3" value="2" <%if(company_rage.equals("2")){%>checked<%}%> onclick="showSpan(this.value)" /><font class="text12">两者都有</font>
			</td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				
			</td>
			<td  colspan="3">
			
			<div id="xiaoshou" style="float:left;display:inline;white-space:nowrap">
					<font color="red">销售</font>产品
					<input type="text" style="color:#999999" name="company_supply" id="company_supply"  value="<%=company_supply%>" />
			</div>
			<div id="caigou" style="display:none;float:left;white-space:nowrap">
				<font color="red">采购</font>产品
				<input type="text" style="color:#999999" name="company_stock" id="company_stock"   value="<%=company_stock%>" />
			</div>
	
			</td>
		</tr>
		
		
		<tr>
			<td align="right" width="10%">
				企业类型:
			</td>
			<td  colspan="3">
			<select  name="company_type" id="company_type"   width="30">
			<%=custTypeSelect%>
			</select>
			</td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				经营模式:
			</td>
			<td  colspan="3">
					  <input type="checkbox" name="client_status1" id="client_status1" value="0" <%if(flag0=="0"){%>checked="checked"<%}%> />生产加工
					  <input type="checkbox" name="client_status2" id="client_status2" value="1" <%if(flag1=="0"){%>checked="checked"<%}%> />经销批发
					  <input type="checkbox" name="client_status3" id="client_status3" value="2" <%if(flag2=="0"){%>checked="checked"<%}%> />招商代理
					  <input type="checkbox" name="client_status4" id="client_status4" value="3" <%if(flag3=="0"){%>checked="checked"<%}%> />商业服务
					  <input type="checkbox" name="client_status5" id="client_status5" value="4" <%if(flag4=="0"){%>checked="checked"<%}%> onclick="ifCheck()" />以上都不是 
                	<input type="hidden" name="client_status" id="client_status" value="" />
			
			</td>
		</tr>
		
		

		<tr>
			<td align="right" width="10%">
				公司关键字<font color="red">*</font>
			</td>
			<td  colspan="3"><input name="company_key" id="company_key" type="text" maxlength="100" size="40"  value="<%=company_key%>" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				公司主营产品<font color="red">*</font>
			</td>
			<td  colspan="3">
			
			<textarea name="main_product" id="main_product"  rows="6" cols="40" ><%=main_product%></textarea>
			
			</td>
		</tr>

		<!--// fixed by Zhouxq -->
		<tr>
			<td align="right" width="15%">
				企业分类<font color="red">*</font>
			</td>
			<td align="left" colspan="3">
				<div id="classId1" style="display:block;">
								<font color="#CECECE"><%=classAttr%></font>
			<label id="name0"></label><label id="name1"></label>
			<label id="name2"></label><label id="name3"></label>
						
											
			<input type="button" name="buttons" value="重新选择" style="cursor:pointer;" class="buttoncss" onClick="ChangeClassStyle();" />
				</div>
				<div id="classId2" style="display:none;">
					
								  <select name="sort1" id="sort1"  onChange="setSecondClass(this.value);">
	                			
	                					<option value="">请选择</option>
	                </select>
							
										<select name="sort2" id="sort2"  onChange="setTherdClass(this.value);">
											<option value="">请选择</option>
										</select>								
						
										<select name="sort3" id="sort3">
													<option value="">请选择</option>
										</select>							  
				
				  </div>
			</td>
		</tr>			
		<!--// fixed by Zhouxq -->
			<tr>					
			<td align="right" width="10%">
				所在地区<font color="red">*</font>
			</td>
			<td colspan="3">
				<div id="org1">
					<font color="#CECECE"><%=areaAttr%></font>
					<input type="button" name="buttons" value="修改地区" class="buttoncss" onclick="ChangeOrg()" />
				</div>
				<div style="display:none;" id="org2">
					<select name="province" id="province" onclick="setCitys(this.value)">
					  <option value="">省份</option> 
					</select>
					<select name="eparchy_code" id="eparchy_code" onclick="setAreas(this.value)">
					  <option value="">地级市</option> 
					 </select>
					<select name="city_code" id="city_code" style="display:inline" >
					 <option value="">市、县级市、县</option> 
					</select>
				</div>
				
				</td>
			</tr>
		
		<tr>
			<td align="right" width="10%">
				公司简介<font color="red">*</font>
			</td>
			<td  colspan="3">
			<textarea name="company_desc" ><%=company_desc%></textarea>
			<script type="text/javascript" src="/program/plugins/ckeditor/ckeditor.js"></script>
			<script type="text/javascript">
				CKEDITOR.replace('company_desc');
			</script>
			</td>
		</tr>
		



			<tr>
				<td colspan="4">
			   &nbsp;&nbsp;<img src="/program/admin/images/infotip.gif" border="0">&nbsp;&nbsp;<span style="font-size:14px;font-weight:bold;">企业联系信息</span>			</td>
		    </tr>

		<tr>
			<td align="right" width="10%">
				联系人姓名<font color="red">*</font>
			</td>
			<td width="30%"><input name="contact_name" id="contact_name" type="text" value="<%=contact_name%>" /> &nbsp;&nbsp;
			<input name="contact_sex" id="contact_sex_1" value="1" type="radio" <%if(contact_sex.equals("1")){%>checked<%}%>/> 男 &nbsp;
			<input name="contact_sex" id="contact_sex_0" value="0" type="radio" <%if(contact_sex.equals("0")){%>checked<%}%>/> 女
			</td>
				
			<td align="right" width="15%">
				联系人手机<font color="red">*</font>
			</td>
			<td><input name="contact_cellphone" id="contact_cellphone" type="text"  value="<%=contact_cellphone%>"/></td>
		</tr>
		
		</tr>
		<tr>
			<td align="right" width="10%">
				联系人部门:
			</td>
			<td><input name="contact_depart" id="contact_depart" type="text" value="<%=contact_depart%>" /></td>
			
						
			<td align="right" width="10%">
				联系人职位<font color="red">*</font>
			</td>
			<td><input name="contact_job" id="contact_job" type="text" value="<%=contact_job%>" /></td>
		</tr>

		<tr>
			<td align="right" width="10%">
				联系人MSN:
			</td>
			<td><input name="contact_msn" id="contact_msn" type="text" value="<%=contact_msn%>" /></td>

			<td align="right" width="10%">
				联系人QQ:
			</td>
			<td><input name="contact_qq" id="contact_qq" type="text"  value="<%=contact_qq%>"  /></td>
		</tr>

		<tr>
			<td align="right" width="10%">
				联系电话<font color="red">*</font>
			</td>
			
			<td><input name="phone" id="phone" type="text"   value="<%=phone%>"  /></td>
		
			<td align="right" width="10%" >
				传真号:
			</td>
			<td><input name="fax" id="fax" type="text"  value="<%=fax%>"   /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				公司地址:
			</td>
			<td><input name="company_addr" id="company_addr" type="text" maxlength="100" size="40"  value="<%=company_addr%>"   /></td>
			
			<td align="right" width="10%">
				电子邮箱<font color="red">*</font>
			</td>
			<td><input name="email" id="email" type="text" value="<%=email%>" /></td>
			
		</tr>
		
		<tr>
			<td align="right" width="10%">
				经营地址:
			</td>
			<td><input name="business_addr" id="business_addr" type="text" maxlength="100" size="40" value="<%=business_addr%>" /></td>

			<td align="right" width="10%">
				邮政编码:
			</td>
			<td><input name="post_code" id="post_code" type="text"  value="<%=post_code%>"/></td>
			
		</tr>
		
		<tr>
			<td align="right" width="10%">
				公司网站:
			</td>
			<td colspan="3"><input name="website" id="website" type="text" maxlength="30" size="40" value="<%=website%>"/></td>
			
		
			<tr>
				<td colspan="4">
			   &nbsp;&nbsp;<img src="/program/admin/images/infotip.gif" border="0">&nbsp;&nbsp;<span style="font-size:14px;font-weight:bold;">企业详细信息</span>			</td>
		    </tr>
		
		<tr>
			<td align="right" width="10%">
				注册币种:
			</td>
			<td><input name="reg_money_type" id="reg_money_type" type="text"   value="<%=reg_money_type%>"/></td>

			<td align="right" width="10%">
				注册资金:
			</td>
			<td><input name="reg_money" id="reg_money" type="text"  value="<%=reg_money%>" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				工商注册时间:
			</td>
			<td><input name="reg_date" id="reg_date" type="text" onFocus="WdatePicker()" value="<%=reg_date%>" /></td>

			<td align="right" width="10%">
				注册地:
			</td>
			<td><input name="reg_addr" id="reg_addr" type="text"    value="<%=reg_addr%>"/></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				法人代表:
			</td>
			<td><input name="corporate" id="corporate" type="text"    value="<%=corporate%>"/></td>

			<td align="right" width="10%">
				营业执照号:
			</td>
			<td><input name="reg_no" id="reg_no" type="text"    value="<%=reg_no%>" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				纳税人登记号:
			</td>
			<td><input name="tax_no" id="tax_no" type="text"    value="<%=tax_no%>"/></td>
	
			<td align="right" width="10%">
				进出口企业代码:
			</td>
			<td><input name="company_code" id="company_code" type="text"   value="<%=company_code%>" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				开户银行:
			</td>
			<td><input name="bank_code" id="bank_code" type="text"  value="<%=bank_code%>" /></td>

			<td align="right" width="10%">
				帐号:
			</td>
			<td><input name="bank_no" id="bank_no" type="text"   value="<%=bank_no%>" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				厂房面积:
			</td>
			<td><input name="make_sum" id="make_sum" type="text"   value="<%=make_sum%>" /></td>
	
			<td align="right" width="10%">
				雇员人数:
			</td>
			<td><input name="staff_num" id="staff_num" type="text"   value="<%=staff_num%>" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				研发部门人数:
			</td>
			<td><input name="kwo_num" id="kwo_num" type="text"   value="<%=kwo_num%>" /></td>

			<td align="right" width="10%">
				品牌名称:
			</td>
			<td><input name="brand_name" id="brand_name" type="text"  value="<%=brand_name%>" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				月产量:
			</td>
			<td><input name="month_sum" id="month_sum" type="text"  value="<%=month_sum%>" /></td>

			<td align="right" width="10%">
				月产单位:
			</td>
			<td><input name="month_unit" id="month_unit" type="text" value="<%=month_unit%>"  /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				年进口额:
			</td>
			<td><input name="year_in" id="year_in" type="text"  value="<%=year_in%>"  /></td>
		
			<td align="right" width="10%">
				年出口额:
			</td>
			<td><input name="year_out" id="year_out" type="text"   value="<%=year_out%>"  /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				年销售额:
			</td>
			<td><input name="year_sum" id="year_sum" type="text"    value="<%=year_sum%>"  /></td>

			<td align="right" width="10%">
				管理体系认证:
			</td>
			<td><input name="man_auth" id="man_auth" type="text"    value="<%=man_auth%>"  //></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				质量控制:
			</td>
			<td><input name="control_type" id="control_type" type="text"  value="<%=control_type%>" /></td>

			<td align="right" width="10%">
				主要市场:
			</td>
			<td><input name="main_market" id="main_market" type="text"  value="<%=main_market%>" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				主要客户群:
			</td>
			<td><input name="main_cust" id="main_cust" type="text"  value="<%=main_cust%>" /></td>
			
			<td align="right" width="10%">
				是否提供OEM代加工:
			</td>
			<td>
			<input type="radio" name="isoem" id="isoem_0" value="1" <%if(isoem.equals("1")){%>checked<%}%>/> 是 &nbsp;
			<input type="radio" name="isoem" id="isoem_1" value="0" <%if(isoem.equals("0")){%>checked<%}%>/>   否&nbsp;
			</td>

		</tr>

	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="flag_code" id="flag_code" value="0"/>
			    <input type="hidden" name="class_attr_bak" id="class_attr_bak" value="<%=class_attr%>"/>				
				<input type="hidden" name="class_attr" id="class_attr" value="<%=class_attr %>" />
				<input type="hidden" name="area_attr_bak" id="area_attr_bak" value="<%=area_attr%>" />
				<input type="hidden" name="area_attr" id="area_attr" value="<%=area_attr %>" />
				<input name="cust_id" id="cust_id" value="<%=cust_id%>" type="hidden" />
				<input name="cust_state" id="cust_state" value="0" type="hidden" />
				<input type="hidden" name="bpm_id" value="2786" />
				<input type="hidden" name="cust_type" value="0" />
				<input type="hidden" name="user_type" id="user_type" value="<%=user_type%>" />
				<input type="hidden" name="state_code" value="<%=state_code	%>" />
				<%
					if(jumpurl.equals("")){%>
					<input type="button" class="buttoncss"  onclick="submitForm('update')" value="提交" />&nbsp;&nbsp;
					<input type="button"  class="buttoncss"   value="返回" onclick="window.location.href='index.jsp';"/>
					<%}else{%>
					<input type="button"  class="buttoncss"   value="返回" onclick="history.go(-1);"/>
					<%}
				 %>
				
			</td>
		</tr>
	</table>
	
	<%
	if (user_class.equals("1"))
	{
%>
<script>setProvince();setOneClass(12);</script>
<input type="hidden" id="userclass_type" name="userclass_type" value="12" />
<%
	}
else
	{
%>
<script>setProvince();setOneClass(1);</script>
<input type="hidden" id="userclass_type" name="userclass_type" value="1" />
<%
	}
%>
</form>
</body>

</html>

